package com.elder.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.elder.business.mapper.ElderLogMapper;
import com.elder.business.domain.ElderLog;
import com.elder.business.service.IElderLogService;

/**
 * 操作日志Service业务层处理
 * 
 * @author zyk
 * @date 2023-11-26
 */
@Service
public class ElderLogServiceImpl implements IElderLogService 
{
    @Autowired
    private ElderLogMapper elderLogMapper;

    /**
     * 查询操作日志
     * 
     * @param logId 操作日志主键
     * @return 操作日志
     */
    @Override
    public ElderLog selectElderLogByLogId(Long logId)
    {
        return elderLogMapper.selectElderLogByLogId(logId);
    }

    /**
     * 查询操作日志列表
     * 
     * @param elderLog 操作日志
     * @return 操作日志
     */
    @Override
    public List<ElderLog> selectElderLogList(ElderLog elderLog)
    {
        return elderLogMapper.selectElderLogList(elderLog);
    }

    /**
     * 新增操作日志
     * 
     * @param elderLog 操作日志
     * @return 结果
     */
    @Override
    public int insertElderLog(ElderLog elderLog)
    {
        return elderLogMapper.insertElderLog(elderLog);
    }

    /**
     * 修改操作日志
     * 
     * @param elderLog 操作日志
     * @return 结果
     */
    @Override
    public int updateElderLog(ElderLog elderLog)
    {
        return elderLogMapper.updateElderLog(elderLog);
    }

    /**
     * 批量删除操作日志
     * 
     * @param logIds 需要删除的操作日志主键
     * @return 结果
     */
    @Override
    public int deleteElderLogByLogIds(Long[] logIds)
    {
        return elderLogMapper.deleteElderLogByLogIds(logIds);
    }

    /**
     * 删除操作日志信息
     * 
     * @param logId 操作日志主键
     * @return 结果
     */
    @Override
    public int deleteElderLogByLogId(Long logId)
    {
        return elderLogMapper.deleteElderLogByLogId(logId);
    }
}
